package com.castle.fortress.admin.study.exam.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 会员未完成试卷信息 实体类
 *
 * @author castle
 * @since 2023-02-16
 */
@Data
@TableName("study_member_unfinish_exam")
public class StudyMemberUnfinishExamEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(
			value = "id",
			type = IdType.ASSIGN_ID
	)
	private Long id;
	/**
	 * 试卷ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long examId;
	/**
	 * 用户ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long memberId;
	/**
	 * 考试时长，单位分钟
	*/
	private Integer examTime;
	/**
	 * 题目ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long examQuestionId;
	/**
	 * 题目类型(单选题/多选题)
	*/
	private String questionType;
	/**
	 * 得分
	*/
	private Integer score;
	/**
	 * 标题
	*/
	private String title;
	/**
	 * 标题附图
	*/
	private String titleImg;
	/**
	 * 标题音频
	*/
	private String titleMp3;
	/**
	 * 选项类型(文字/图文)
	*/
	private String optionType;
	/**
	 * 题目解析
	*/
	private String analysis;
	/**
	 * 题目排序
	*/
	private Integer sort;
	/**
	 * 答案
	*/
	private String answer;
	/**
	 * 选项A内容
	*/
	private String answerA;
	/**
	 * 选项B内容
	*/
	private String answerB;
	/**
	 * 选项C内容
	*/
	private String answerC;
	/**
	 * 选项D内容
	*/
	private String answerD;
	/**
	 * 选项E内容
	*/
	private String answerE;
	/**
	 * 选项F内容
	*/
	private String answerF;
	/**
	 * 用户选择的答案
	*/
	private String choiceAnswer;
	@DateTimeFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty("创建时间")
	private Date createTime;

}
